package com.czd.support.service;

import org.springframework.stereotype.Service;

import com.czd.base.service.BaseService;
import com.czd.support.model.Reason;


/**
 * @Description 代理申请失败原因处理类
 * @Author CaoRen
 * @Date 2015/07/24
 */
@Service
public class ReasonService extends BaseService<Reason>{
	public boolean insert(Reason reason){
		return this.insert(sqlId("insert"), reason);
	}
	
	public Reason findByUserCompanyId(int userCompanyId){
		return this.selectOne(sqlId("findByUserCompanyId"), userCompanyId);
	}
	
	public boolean update(Reason reason){
		return this.insert(sqlId("update"), reason);
	}
}
